<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    //系统设置
    $router->get('commonset/showCommonSet', 'CommonSetController@showCommonSet');
    $router->get('commonset/updateCommonSet', 'CommonSetController@updateCommonSet');

    $router->post('release','BatchSetController@release');//发布操作
    $router->post('releaseAll','BatchSetController@releaseAll');//批量发布  批量取消发布
    $router->post('video_list/unrelease', 'VideoListController@unrelease');
    $router->post('unreleased/release', 'UnreleasedController@release');

    $router->resource('/', VideoListController::class);
    $router->resource('video_list', VideoListController::class);
    $router->resource('unreleased', UnreleasedController::class);//未发布视频列表
    $router->resource('user_list', UserListController::class);
    $router->resource('advert_list', AdvertListController::class);
    $router->resource('common_set', CommonSetController::class);

});
